package com.hotau.location;

import org.apache.cordova.DroidGap;

import android.os.Bundle;
import android.util.Log;

public class HomeProductActivity extends DroidGap{
	
	private static final String TAG = HomeProductActivity.class.getSimpleName();
	
//	private WebView productTabView;
	
	@Override
	public void onCreate(Bundle bundle) {
		super.onCreate(bundle);
//		setContentView(R.layout.home_product_tabview);
//		productTabView = (WebView)findViewById(R.id.home_product_tabview);
		
		int tabIndicator = getIntent().getIntExtra("tabIndicator", 1);
		Log.i(TAG, "the tab [" + tabIndicator + "] is clicked.");
		switch (tabIndicator) {
			case 1:
				super.loadUrl("file:///android_asset/www/food.html");
				break;
			case 2:
				super.loadUrl("file:///android_asset/www/drink.html");
				break;
			case 3:
				super.loadUrl("file:///android_asset/www/fruit.html");
				break;
			case 4:
				super.loadUrl("file:///android_asset/www/cuisine.html");
				break;
			case 5:
				super.loadUrl("file:///android_asset/www/house.html");
				break;
			case 6:
				super.loadUrl("file:///android_asset/www/clothes.html");
				break;
			case 7:
				super.loadUrl("file:///android_asset/www/others.html");
				break;
			default:
				break;
		}
	}
	
}
